package object;



/**
 * 接口成员特点
 * 只能是常量，无法修改，默认修饰符 public static final
 *
 * 没有构造方法
 *
 * 成员方法只能是抽象方法，默认修饰符 public abstract
 */

interface Test1 {
	public static final String name = "Test1";
	public abstract void show();
}

interface Test2 {
//	public static final String name = "Test2";
	public abstract void show();
}

interface Test3 extends Test1, Test2 {
	public abstract void t3();
}

class TestClass implements Test3 {
	@Override
	public void show() {
		System.out.println(name);
	}

	@Override
	public void t3() {

	}
}

public class Interface1 {
	public static void main(String[] args) {
		TestClass t2 = new TestClass();
		t2.show();
	}
}
